#include "shared_ptr.hpp"

#include <iostream>
#include <string>

class student
{
public:
    student(int age, std::string passge)
    {
        _age = age;
        _passge = passge;
    }
    int _age;
    std::string _passge;
};

int main()
{
    
    zj::shared_ptr<student> ptr = zj::shared_ptr<student>(new student(10, "江苏省盐城市"), [](student *st)
                                                          { delete st; });
    std::cout << ptr.use_count() << std::endl;
    //std::cout << ptr->_age << std::endl;

    return 0;
}